#include "XMLAttribute.h"

#ifdef _DEBUG
#include <Windows.h>
#endif

namespace XMLSAX
{
	namespace Common
	{
		XMLAttribute::XMLAttribute()
		{

		}

		XMLAttribute::XMLAttribute( const std::wstring& name, const std::wstring& value )
		{
			_attributeName = name;
			_attributeValue = value;
		}

		XMLAttribute::~XMLAttribute()
		{

		}

		const std::wstring& XMLAttribute::Name() const
		{
			return _attributeName;
		}

		void XMLAttribute::SetName( const std::wstring& name )
		{
			_attributeName = name;
		}

		const std::wstring& XMLAttribute::Value() const
		{
			return _attributeValue;
		}

		void XMLAttribute::SetValue( const std::wstring& value )
		{
			_attributeValue = value;
		}

#ifdef _DEBUG
		void XMLAttribute::printAttribute()
		{
			OutputDebugString(L"Printing an XMLAttribute:\n");
			OutputDebugString(L"   Name: ");
			OutputDebugString(this->Name().data());
			OutputDebugString(L"\n");
			OutputDebugString(L"   Value: ");
			OutputDebugString(this->Value().data());
			OutputDebugString(L"\n");
		}
#endif
	}
}